<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	
	<script language="javascript" type="text/javascript">
		
		function qryData(){
			form1.action="<%=path%>/other/qryInvoiceList";
			form1.submit();
		}
		function exportData(){
			form1.action="<%=path%>/other/exportInvoice?isList=y";
			form1.submit();
		}
	</script>
	
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">开票情况查询 </span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/KPQKCX.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;开票情况查询 </div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    	<form name="form1" action="<%=path%>/other/qryInvoiceList" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">发票号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryInvoiceNo" name="qryInvoiceNo" type="text" value="${qryInvoiceNo}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">订单号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryOrderNo" name="qryOrderNo" type="text" value="${qryOrderNo}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                            	<td valign="middle" class="w_1">采购公司：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryPurCorpName" name="qryPurCorpName" type="text" value="${qryPurCorpName}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">发票日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryInvoiceBeginDate" name="qryInvoiceBeginDate" type="text" 
	                                    	onclick="return showCalendar('qryInvoiceBeginDate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${qryInvoiceBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryInvoiceEndDate" name="qryInvoiceEndDate" type="text" 
	                                    	onclick="return showCalendar('qryInvoiceEndDate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${qryInvoiceEndDate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">票到日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryArriveBeginDate" name="qryArriveBeginDate" type="text" 
	                                    	onclick="return showCalendar('qryArriveBeginDate', 'y-mm-dd');"  
	                                   		readonly="readonly"  value="${qryArriveBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryArriveEndDate" name="qryArriveEndDate" type="text" 
	                                    	onclick="return showCalendar('qryArriveEndDate', 'y-mm-dd');"   
	                                    	readonly="readonly" value="${qryArriveEndDate}" class="searchdate" />
	                                </td>
	                               <td colspan="2">&nbsp;</td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询" onclick="qryData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="导出" onclick="exportData()" <c:if test="${invoiceForms==null}">disabled</c:if>/>
	                                </td>
	                            </tr>
	                        </table>
	                	</form>
                    </div>
                    <div class="margin20">
                    </div>
                    <div>
                        <table border="0" cellpadding="0" cellspacing="0" class="tableCss" align="center">
                            <tr class="titleTr">
                                <th width="150px">发票号</th>
                                <th width="90px">发票日期</th>
                                <th width="90px">票到日期 </th>
                                <th width="70px">币种</th>
                                <th width="200px">采购公司</th>
                                <th width="200">采购部门</th>
                            </tr>
                            <c:if test="${invoiceForms!=null}">
								<c:forEach items="${invoiceForms}" var="invoiceForm" varStatus="index">
										<c:if test="${invoiceForm.index%2==1}">
											<tr align="left" class="contTr-old"  >
										</c:if>
										<c:if test="${invoiceForm.index%2==0}">
											<tr align="left" class="contTr-even">
										</c:if>
										<td class="td1"><a  class="linkstyle" href="<%=path%>/other/invoiceDetail?invoicePk=${invoiceForm.pkInvoice}" >${invoiceForm.billNo}</a></td>
										<td class="td1">${invoiceForm.billDate}&nbsp;</td>
										<td class="td1">${invoiceForm.arriveDate}&nbsp;</td>
										<td class="td1">${invoiceForm.curencyName}&nbsp;</td>
										<td class="td1">${invoiceForm.purCorpName}&nbsp;</td>
										<td class="td1">${invoiceForm.purDeptName}&nbsp;</td>
										<!--<td class="td1">${invoiceForm.payCorpName}&nbsp;</td>-->
									</tr>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>
